<!-- 
Copyright (c) 2021-2024 SigScalr, Inc.

This file is part of SigLens Observability Solution

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<!DOCTYPE html>
<html lang="en">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5SBJC04YFB"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag() { dataLayer.push(arguments); }
    gtag('js', new Date());

    gtag('config', 'G-5SBJC04YFB');
</script>

<head>
    <meta charset="UTF-8">
    <title>SigLens</title>

    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
    <link rel="manifest" href="assets/site.webmanifest">
    <link rel="mask-icon" href="assets/safari-pinned-tab.svg" color="#5bbad5">
    <meta name="msapplication-TileColor" content="#da532c">

    <link rel="stylesheet" href="./css/lib/bootstrap.min.css" />
    <link rel="stylesheet" href="./css/lib/all.min.css" />
    <link rel="stylesheet" href="./css/lib/ag-grid.min.css" />
    <link rel="stylesheet" href="./css/lib/jquery-ui.min.css" />
    <link rel="stylesheet" href="./css/lib/jquery.tagsinput.min.css" />
    <link rel="stylesheet" href="./css/lib/jquery-ui.min.css" />
    <link rel="stylesheet" href="./css/lib/tippy.css" />
    <link rel="stylesheet" href="./css/siglens.css?cb={{ AppVersion }}" />
    <link rel="stylesheet" href="./css/query-builder.css?cb={{ AppVersion }}" />

    <script src="./js/lib/uuidv4.min.js"></script>
    <script src="./js/lib/lodash.min.js"></script>
    <script src="./js/lib/jquery-3.6.0.min.js"></script>
    <script src="./js/lib/jquery-ui.min.js"></script>
    <script src="./js/lib/js.cookie.min.js"></script>
    <script src="./js/lib/moment.min.js"></script>
    <script src="./js/lib/date_fns.min.js"></script>
    <script src="./js/lib/popper.min.js"></script>
    <script src="./js/lib/tippy-bundle.umd.min.js"></script>
    <script src="./js/lib/bootstrap.bundle.min.js"></script>
    <script src="./js/lib/ag-grid-community.min.noStyle.js"></script>
    <script src="./js/lib/chart.umd.min.js"></script>
    <script src="./js/lib/chartjs-adapter-date-fns.bundle.min.js"></script>
    <script src="./js/lib/chartjs-plugin-annotation.min.js"></script>
    <script>
        var defaultTheme = Cookies.get('theme') || 'light';
        $('html').attr('data-theme', defaultTheme);
    </script>
    {{ .RunCheck1 | safeHTML }}
</head>

<body>
    <div class="pop-layer" id="pop-layer">
    </div>
    <div id="app-container">

        <div id="app-side-nav">
        </div>
        <div id="dashboard">
            <div class="kubernetes-overview-page">
                <div class="p-4">
                    <div id="header-container"></div>
                    <div class="main-filter-container">
                        <div id="filter-cluster" class="filter-container"></div>
                        <div id="filter-namespace" class="filter-container"></div>
                    </div>
                    <div class="stats-container">
                        <div id="clusters"></div>
                        <div id="nodes"></div>
                        <div id="namespaces"></div>
                        <div id="workloads"></div>
                        <div id="pods"></div>
                        <div id="containers"></div>
                    </div>
                    <div class="k8-chart-container mt-3 stats-container">
                        <div id="cpu-usage">
                            <div class="cluster-card">
                                <div class="cluster-header">
                                    <span class="header-title">CPU Usage by Cluster</span>
                                    <div class="header-actions">
                                        <div class="dropdown">
                                            <button class="menu-button btn"></button>
                                            <div class="dropdown-content">
                                                <li class="explore-option">
                                                    <span class="explore-icon"></span>
                                                    Explore
                                                </li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                </div>
                            </div>
                        </div>
                        <div id="memory-usage">
                            <div class="cluster-card">
                                <div class="cluster-header">
                                    <span class="header-title">Memory Usage by Cluster</span>
                                    <div class="header-actions">
                                        <div class="dropdown">
                                            <button class="menu-button btn"></button>
                                            <div class="dropdown-content">
                                                <li class="explore-option">
                                                    <span class="explore-icon"></span>
                                                    Explore
                                                </li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div>
                                </div>
                            </div>
                        </div>
                        <div id="container-images"></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="app-footer">
            2024 &copy; SigLens
        </div>

    </div>

    <script src="./js/navbar.js?cb={{ AppVersion }}"></script>
    <script src="./js/common.js?cb={{ AppVersion }}"></script>
    <script src="./js/event-handlers.js?cb={{ AppVersion }}"></script>
    <script src="./js/date-picker.js?cb={{ AppVersion }}"></script>
    <script src="./js/kubernetes-overview.js?cb={{ AppVersion }}"></script>
    <script src="./component/infrastructure/header-component.js?cb={{ AppVersion }}"></script>
    <script src="./component/infrastructure/big-number-card-component.js?cb={{ AppVersion }}"></script>
    <script src="./component/infrastructure/search-dropdown-component.js?cb={{ AppVersion }}"></script>
    <script src="./component/infrastructure/container-image-card-component.js?cb={{ AppVersion }}"></script>
    <script src="./component/infrastructure/usage-line-chart-component.js?cb={{ AppVersion }}"></script>    

    {{ .RunCheck2 | safeHTML }}
    {{ .RunCheck3 | safeHTML }}

</body>

</html>